<template>
    <div>
        <a href="tencent://message/?uin=2041306304&Site=Sambow&Menu=yes">微信客服</a>
    </div>
</template>

<script>
    (function () {
        var c = document.createElement("script"), s = document.getElementsByTagName("script")[0];
        c.src = "https://kefu.cckefucloud.com/vclient/?webid=1560682&wc=fee39159";
        s.parentNode.insertBefore(c, s);
    })();
    export default {
        beforeCreate() {
            // let kf = document.getElementsByClassName('kf_qycn_com_cckf_dock_bt')[0];
            // let kf1 = document.getElementsByClassName('kf_qycn_com_cckf_welcomebox')[0];
            // kf.className += '';
            // kf.className += 'kf_qycn_com_cckf_dock_bt';
            // kf1.className += '';
            // kf1.className += 'kf_qycn_com_cckf_welcomebox';
        },
        mounted(){
            let kf = document.getElementsByClassName('kf_qycn_com_cckf_dock_bt')[0];
            let kf1 = document.getElementsByClassName('kf_qycn_com_cckf_welcomebox')[0];
            kf.className += '';
            kf.className += 'kf_qycn_com_cckf_dock_bt';
            kf1.className += '';
            kf1.className += 'kf_qycn_com_cckf_welcomebox';
        },
        beforeDestroy() {
            let kf = document.getElementsByClassName('kf_qycn_com_cckf_dock_bt')[0];
            let kf1 = document.getElementsByClassName('kf_qycn_com_cckf_welcomebox')[0];
            kf.className += ' none_f';
            kf.innerHTML = "";
            kf1.className += ' none_f';
            kf1.innerHTML = "";
        },
    }
</script>

<style>
    .kf_qycn_com_cckf_dock_bt {
        display: block;
    }
    .none_f{
        display: none;
    }
</style>